LiteralString

annotation class LiteralString

Java field-friendly version of TomlLiteralString

Marks the annotated String property as literal when encoded.

class LiteralStringData(
@TomlLiteralString
val literalString: String
)
LiteralStringData("C:\\Users\\<User>\\.m2\\repositories")

will produce:

literalString = 'C:\Users\<User>\.m2\repositories'

Author

fzzyhmstrs

Since

0.2.0